# -*- coding:UTF-8 -*-
#/Users/chenjie/Desktop/exe.xlsx
import xlwt

file = xlwt.Workbook()
table = file.add_sheet('sheet name') #新建一个sheet


for i in range(0,10):
    for j in range(0,2):
        table.write(i,j,i*j)


table = file.add_sheet('sheet nam',cell_overwrite_ok=True)
file.save('/Users/chenjie/Desktop/exe.xls')
#使用style
# 使用style
style = xlwt.XFStyle()
font = xlwt.Font()
font.name = 'Time New Roman'
font.bold = True
style.font = font
table.write(0, 0, 'some bold Times text', style)
